{extend name='public/base' /}
{block name='content'}
{include file='public/content_header' /}
<section class="content">
    <div class="row">
        <div class="col-md-12">
            <div class="box box-primary">
                <!-- 表单 -->
                <form id="dataForm" class="form-horizontal dataForm" action="" method="post" enctype="multipart/form-data">
                    <!-- 表单字段区域 -->
                    <div class="box-body" style="height: 500px;">
                        <div class="form-group">
                            <label for="corporate_name" class="col-sm-2 control-label">公司名称</label>
                            <div class="col-sm-10 col-md-4">
                                <input id="corporate_name" name="corporate_name" value="{$config.corporate_name|default=''}" placeholder="请输入公司名称" type="text" class="form-control field-text">
                            </div>
                        </div>
                        <div class="form-group">
                            <label for="corporate_scale" class="col-sm-2 control-label">公司规模</label>
                            <div class="col-sm-10 col-md-4">
                                <input id="corporate_scale" name="corporate_scale" value="{$config.corporate_scale|default=''}" placeholder="请输入公司规模" type="text" class="form-control field-text">
                                <span id="min_withdraw-error" class="help-block">公司规模请用英文逗号分隔</span>
                            </div>
                        </div>
                        <div class="form-group">
                            <label for="functional_module" class="col-sm-2 control-label">功能模块</label>
                            <div class="col-sm-10 col-md-4">
                                <input id="functional_module" name="functional_module" value="{$config.functional_module|default=''}" placeholder="请输入功能模块" type="text" class="form-control field-text">
                                <span id="min_withdraw-error" class="help-block">功能模块请用英文逗号分隔</span>
                            </div>
                        </div>
                        <div class="form-group">
                            <label for="img_url" class="col-sm-2 control-label">图片访问地址</label>
                            <div class="col-sm-10 col-md-4">
                                <input id="img_url" name="img_url" value="{$config.img_url|default=''}" placeholder="请输入图片访问地址" type="text" class="form-control field-text">
                            </div>
                        </div>
                        <div class="form-group">
                            <label for="tel" class="col-sm-2 control-label">联系电话</label>
                            <div class="col-sm-10 col-md-4">
                                <input id="tel" name="tel" value="{$config.tel|default=''}" placeholder="请输入联系电话" type="text" class="form-control field-text">
                            </div>
                        </div>
                        <div class="form-group">
                            <label for="qq_map_key" class="col-sm-2 control-label">腾讯地图key</label>
                            <div class="col-sm-10 col-md-4">
                                <input id="qq_map_key" name="qq_map_key" value="{$config.qq_map_key|default=''}" placeholder="请输入腾讯地图key" type="text" class="form-control field-text">
                            </div>
                        </div>
                    </div>
                    <!-- 表单底部 -->
                    <div class="box-footer">
                        {:token()}
                        <div class="col-sm-2">
                        </div>
                        <div class="col-sm-10 col-md-4">
                            <div class="btn-group">
                                <button type="submit" class="btn flat btn-info dataFormSubmit">
                                    保存
                                </button>
                            </div>
                        </div>
                    </div>
                </form>
            </div>
        </div>
    </div>
</section>
<script>
    /** 表单验证 **/
    $('#dataForm').validate({
        rules: {
                'type': {
        required: true,
    },
    'name': {
        required: true,
    },
    'value': {
        required: true,
    },

        },
        messages: {
                'type': {
        required: "类型不能为空",
    },
    'name': {
        required: "名称不能为空",
    },
    'value': {
        required: "值不能为空",
    },

        }
    });
</script>
{/block}